import { defineConfig } from 'rollup'
import typescript from '@rollup/plugin-typescript';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';

export default defineConfig({
  input: './src/index.ts',
  output: [
    {
      file: 'dist/index.esm.js',
      format: "esm"
    },
    {
      file: 'dist/index.cjs.js',
      format: 'cjs'
    }
  ],
  plugins: [
    commonjs(),
    nodeResolve(),
    typescript(),

  ]
})